package com.agent.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.agent.service.AsLogsService;
import com.agent.util.PageResult;

@RestController
@CrossOrigin
@RequestMapping("asLogs")
public class AsLogsController {
	@Autowired
	private AsLogsService asLogsService;

	@RequestMapping("findAsLogsPage/{pageNum}/{pageSize}")
	public PageResult findAsLogsPage(@PathVariable int pageNum, @PathVariable int pageSize,HttpServletRequest request) {
		return asLogsService.findAsLogsPage(pageNum, pageSize);
	}
}
